import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '@/views/user/home.vue'
import typeScipt from '@/views/user/typeScipt.vue'
import index from '../views/index.vue'

Vue.use(VueRouter)

const routes = [{
  path: '/',
  name: 'home',
  component: home
},
{
  path: '/typeScipt',
  name: 'typeScipt',
  component: typeScipt
},
{
  path: '/index',
  name: 'index',
  component: index
}

]

const router = new VueRouter({
  routes
})

export default router
